package com.hs.jhzd.repository;

import com.hs.jhzd.entity.QuestionnaireQuestion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface QuestionnaireQuestionRepository extends JpaRepository<QuestionnaireQuestion, String> {

    public Integer countQuestionnaireQuestionByQuestionnaireId(String id);
    @Query(value="select id from jh_questionnaire_question order by id DESC limit  1",nativeQuery=true)
    String findZybh();
    @Query("select u from QuestionnaireQuestion u where u.id=:titlesId")
    QuestionnaireQuestion findOneById(@Param("titlesId") String titlesId);
}
